function workplan(){
	
	var formData = new FormData();
    formData.append("employeeName", $("#employeeName").val());
    formData.append("plan", $("#plan").val());
    formData.append("caseId", $("#caseId").val());
    formData.append("creatDatatime", $("#creatDatatime").val());
	$.ajax({
		url : "verify",
		type : "post",
		processData: false,
		contentType: false,
		data : formData,
		success : function(res) {
			console.log(res)
			if(res.status == 200){
				window.location.href="../case/case_info?caseId="+$("#caseId").val();
			} else {
				toastr.error('提交错误')
			}
		},
		error : function(e) {
			alert("错误！！");
			window.clearInterval(timer);
		}
	});
}

$(document).on("click",'[listid]',function(){
	var listId = $(this).attr('listid');
	console.log(listId);
	var $id = $(".table-striped");
	console.log($id);
	$.ajax({
		url : "dele?id="+listId,
		type : "get",
		data : {
			id:listId
		},
		
		success : function(res) {
			console.log(res)
			if(res.status == 200){
				console.log("删除成功");
				location.reload() ;
			}
		},
		error : function(e) {
			alert("错误！！");
			window.clearInterval(timer);
		}
	});
})

